package com.example.dataView.controller;


import com.example.dataView.common.result.R;
import com.example.dataView.service.SchoolFeverService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiResponse;
import io.swagger.annotations.ApiResponses;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 成大事
 * @since 2022-06-12 19:01:25
 */
@Api(tags = "学校热度")
@Slf4j
@Validated
@RestController
@RequestMapping("/schoolFever")
@RequiredArgsConstructor(onConstructor_ = @Autowired)
public class SchoolFeverController {

    private final SchoolFeverService schoolFeverService;

    @ApiOperation(value = "高校热度排行榜")
    @PostMapping("/getSchoolFeverList")
    @ApiResponses({
            @ApiResponse(code = 200,message = "成功"),
            @ApiResponse(code = 500,message = "错误"),
    })
    public R<Object> getSchoolFeverList(){
        return schoolFeverService.getSchoolFeverList();
    }


}

